package com.example.whatrubbish.model;

public class CommodityDetail {
    private Long id;

    private Long commodityId;

    private Integer sales;

    private String photoUrl;

    public CommodityDetail(Long id, Long commodityId, Integer sales, String photoUrl) {
        this.id = id;
        this.commodityId = commodityId;
        this.sales = sales;
        this.photoUrl = photoUrl;
    }

    public CommodityDetail() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl == null ? null : photoUrl.trim();
    }
}